/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2024 All Rights Reserved.
 */
package com.bohong.freshShop.service.impl;

import com.bohong.freshShop.dao.entity.UserEntity;
import com.bohong.freshShop.dao.mapper.UserMapper;
import com.bohong.freshShop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author runhong.wyb
 * @version $Id: UserServiceImpl.java, v 0.1 2024-01-19 15:47 san.zhang Exp $$
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public int register(UserEntity userEntity) {
        return userMapper.add(userEntity);
    }

    @Override
    public UserEntity queryByUsername(String username) {
        return userMapper.queryByUsername(username);
    }
}
